package com.lianjia.sh.tools.msg.v2.message.impl;

import com.lianjia.sh.tools.msg.v1.sender.impl.PnsSenderImpl;
import com.lianjia.sh.tools.msg.v2.sender.Sender;
import com.lianjia.sh.tools.msg.v2.message.PnsPicMsg;
import com.lianjia.sh.tools.msg.v2.sender.PnsSender;

/**
 * Created by yangsp1 on 16/6/24.
 */
public class PnsPicMsgImpl implements PnsPicMsg {
    //必填：图片链接
    String picUrl;

    //必填：员工工号 多个人用逗号隔开
    String recipients;

    @Override
    public boolean isMatch(Sender sender) {
        return sender instanceof PnsSenderImpl;
    }

    @Override
    public void invokSend(Sender sender) {
        PnsSender pnsSender = ((PnsSender)sender);
        pnsSender.send(this);
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getRecipients() {
        return recipients;
    }

    public void setRecipients(String recipients) {
        this.recipients = recipients;
    }
}
